package com.chen.feign.user;

import com.chen.model.entity.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cgj
 * @date 4/27/25 7:37 PM
 */
@FeignClient(value = "service-user") //这里写的是nacos服务注册的名字
public interface UserFeignClient {
    /**
     * /api/user/userAddress/auth/getAddrById/{id}
     * 根据地址id, 返回用户地址对象
     */
    @GetMapping("/api/user/userAddress/auth/getAddrById/{id}")
    public UserAddress getAddrById(@PathVariable Long id);
}
